<?php

/**
 * 自定义配置文件
 */
return array(

    // 开启rewrite模式
    'rewrite' => true,

    // 数据库连接配置
    'db' => array(
        'default' => array(
            'dsn' => 'mysql:dbname=app;host=127.0.0.1;charset=utf8',
            'username' => 'root',
            'password' => '******',
            'prefix' => 'tb_',
        ),
        'server' => array(
            'dsn' => 'mysql:dbname=app;host=remote.dbhost.com;charset=utf8',
            'username' => 'dbmanager',
            'password' => '******',
            'prefix' => 'tb_',
        )
    ),

    // 定义数据库连接所用到的标识
    'connect' => 'default',

    // 身份验证密钥串
    'id_key' => 'b1e3c50588f230786bbe741b4eaf62e7',

    //-------------------自定义常量分割线------------------------

    // API访问授权白名单
    'credit' => array(
        'test' => array( // test
            'key' => '29d03b2cd1df163770ffd73c6e541311'
        ),
        'desktop' => array( // 桌面端
            'key' => 'bf2284aad6fc2f3bef7016c3c4b6057d'
        ),
    ),
);